﻿/*
 * Coded by
 * Ahmet Yueksektepe
 * Nick Russler
 */

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Simple_SendObject_Client
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            leetSocket1.connect();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            leetSocket1.sendObject(textBox1.Text);
            
        }

        private void LeetSocket1_OnReceiveCompletedDataEVENT(object value, byte[] bArray)
        {
            String s = (String)value;     
            MessageBox.Show("Client received: " + s);
        }
        
    }
}